package org.baojie.raft.serialization;

public class RaftSerialize extends AbstractSerialize {

    private static volatile RaftSerialize serialize;

    private RaftSerialize() {
        super();
    }

    public static RaftSerialize getInstance() {
        if (null != serialize) {
            return serialize;
        } else {
            synchronized (RaftSerialize.class) {
                if (null == serialize) {
                    serialize = new RaftSerialize();
                }
                return serialize;
            }
        }
    }

}
